﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Diagnostics;
using CSW.Framework.Common;
using CSW.Framework.Common.Data;

namespace CSW.Security
{
    partial class Security_AppFunction
    {
        private Property<int> m_AppFunctionID;
        private Property<string> m_Description;

        /// <summary>
        /// Called at the end of the constructor.
        /// </summary>
        protected override void base_OnCreated()
        {
            m_AppFunctionID = new Property<int>(this, "AppFunctionID");
            m_Description = new Property<string>(this, "Description");

            m_AppFunctionID.IsReadOnly = true;

            m_Description.MaxLength = 30;

            AddRequiredField(m_Description, "Description is required.");
        }

        private void GeneratedOnAppFunctionIDChanging(int value)
        {
            m_AppFunctionID.CheckEdittable();
        }

        private void GeneratedOnDescriptionChanging(string value)
        {
            m_Description.CheckEdittable();
        }
    }
}
